Edit Task: RecurringPeriodicWindows
Description
The RecurringPeriodicWindows attribute under EditTask defines a number of recurring periodic windows for the task. This attribute should only be used if the attribute RecurringType is set to RecurringTime. Any previous periodic windows are deleted. For more information on parameters, see the description of the Periodic Window Definition Form.
Parameters
Parameter | Description |
---|---|
PerPeriodPerWindow | Options are either PerPeriod or PerWindow. Required |
Repeats | A positive integer value. |
PriorityDelta | An integer value that represents a difference between the task's priority and the priority of the current periodic window definition. The value can be either positive of negative. The delta is incrementally applied to each repeat created (ex. if Task1 priority = 1 and the delta is 2, the first child task's priority would be 1, the second child task's priority = 3, and the third child task's priority = 5). |
Frequency | Frequency options should be entered on their own and the options are as follows: "Yearly", "Monthly", "Weekly", "Daily", "Hourly", "Minutely", "Custom" |
Start | The format is YYYY/MM/DD_HH:MM:SS or YYYY/MM/DD_HH:MM:SS.fff |
Stop | The format is YYYY/MM/DD_HH:MM:SS or YYYY/MM/DD_HH:MM:SS.fff |
CustomEpoch | Epoch time is only used if the frequency option is "Custom", otherwise the parameter should not be included in the command. The parameter should be on its own and in the format -- YYY/MM/DD_HH:MM:SS or YYYY/MM/DD_HH:MM:SS.fff. |
CustomInterval | Interval is only used if the frequency option is "Custom", otherwise the parameter should not be included in the command. The parameter should be on its own and entered in numeric second(millisecond fidelity). |
Period Comment | A string of text of the comment itself in single quotes. May be an empty string if no comment is desired. |
"Internal Windows" : "Offset" | The parameter value format is based on the format of the frequency: Weekly: DD_HH:MM:SS.fff (e.g. TU_10:04:05.100) |
"Internal Windows" : "Duration" | Enter as a number in seconds (millisecond fidelity). |
"Internal Windows" : "Comment" | A string of text in single quotes of the comment for the given inside window. |
Examples
Set a yearly recurring window that occurs 3 times every Jan 1, with a duration of 1000 seconds
PATCH api/task/TaskA
Body:
{
"RecurringPeriodicWindows" : {
"Frequency" : "Yearly",
"Start" : "2015/01/01_00:00:00",
"Stop" : "2015/01/03_00:00:00",
"Internal Windows" : {
"Offset" : "01/01_12:30:00"
"Duration" : "1000"
"Comment" : "Recurring Yearly" }
}
}